package com.settlement.system.service.impl;

import com.settlement.system.mapper.TblRefundAuditBillExportMapper;
import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblRefundAuditBillExport;
import com.settlement.system.service.ITblRefundAuditBillExportService;
import org.apache.ibatis.session.ResultHandler;
import org.springframework.stereotype.Service;
import com.settlement.system.mapper.BaseMapper;
import jakarta.annotation.Resource;
import java.util.Map;

/**
 * 退款稽核单据导出 服务实现类
 * @author xiaochuan
 * @since 2020-07-23
 */
@Service
public class TblRefundAuditBillExportServiceImpl extends BaseServiceImpl implements ITblRefundAuditBillExportService {

    @Resource
    private TblRefundAuditBillExportMapper tblRefundAuditBillExportMapper;

    @Override
    public BaseMapper init() {
        return tblRefundAuditBillExportMapper;
    }

    @Override
    public void getDataBillByHandler(Map<String, Object> params, ResultHandler<TblRefundAuditBillExport> handler) throws ServiceException{
        try {
            tblRefundAuditBillExportMapper.getDataBillByHandler(params,handler);
        } catch (Exception ex){
            throw new ServiceException(ex);
        }
    }
}

